#app_canvas_editor {
    display: flex;
    height: 100vh;
}

.left-content {
    flex: 1 1 100%;
    overflow-y: auto;
    transition: flex 0.3s;
}

.right-content {
    flex: 0 0 0;
    height: calc(100% - 130px);
    opacity: 0;
    pointer-events: none;
    width: 0;
    min-width: 0;
    transition: flex 0.3s, width 0.3s, opacity 0.3s;
    margin-top: 100px;
    border-left: 2px solid #e2e6ed;
    background: #fff;
    position: relative;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.right-content.show {
    flex: 0 0 20%;
    opacity: 1;
    width: auto;
    min-width: 0;
    pointer-events: auto;
}

.left-content.with-sidebar {
    flex: 8;
}

.menu-item__sidebar-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 8px;
}

.menu-item__sidebar-toggle .layout-sidebar-right {
    width: 24px;
    height: 24px;
    display: block;
    border-radius: 3px;
}

.right-content.floating {
    position: fixed !important;
    left: 60vw;
    top: 100px;
    z-index: 9999;
    width: 300px !important;
    height: 70% !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    min-width: 0 !important;
    background: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    cursor: move;
    flex: none !important;
    margin-top: 0 !important;
    border-left: 2px solid #e2e6ed !important;
}

.drag-bar {
    height: 30px;
    background: #f0f0f0;
    cursor: move;
    border-bottom: 1px solid #e2e6ed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
}

.right-content-close {
    display: none;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 20px;
    color: #999;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: background 0.2s, color 0.2s;
}

.right-content.floating .right-content-close {
    display: block;
}

.right-content-close:hover {
    background: #f56c6c;
    color: #fff;
}

.right-content.will-absorb {
    border: 2px solid #409eff !important;
    box-shadow: 0 0 0 2px #409eff33;
}

.right-content-input-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    background: #fafbfc;
    border-top: 1px solid #e2e6ed;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    z-index: 10;
}

.right-content-input {
    flex: 1;
    height: 32px;
    border: 1px solid #e2e6ed;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.right-content-send {
    height: 32px;
    padding: 0 16px;
    background: #409eff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.right-content-send:hover {
    background: #3076c9;
}

.right-content-area {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.right-content-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 48px;
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: #fafbfc;
    border-top: 1px solid #e2e6ed;
    z-index: 10;
}

.right-content-accept,
.right-content-reject {
    flex: 1;
    height: 32px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.right-content-accept {
    background: #67c23a;
    color: #fff;
}

.right-content-accept:hover {
    background: #529b2e;
}

.right-content-reject {
    background: #f56c6c;
    color: #fff;
}

.right-content-reject:hover {
    background: #c45656;
}